package gui.inventory;

import static org.junit.Assert.*;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

import core.CoreFacade;
import core.ProductGroup;
import core.StorageUnit;
import core.Unit;

public class InventoryControllerTests
{

	@BeforeClass
	public static void setUpBeforeClass() throws Exception
	{
	}

	@AfterClass
	public static void tearDownAfterClass() throws Exception
	{
	}

	@Before
	public void setUp() throws Exception
	{
	}

	@After
	public void tearDown() throws Exception
	{
	}

	@Test
	public void loadValuesTest()
	{
		CoreFacade core = CoreFacade.getInstance();
		try
		{
			
			StorageUnit pantry = core.addStorageUnit("Pantry");
			StorageUnit cupboard = core.addStorageUnit("Cupboard");
			ProductGroup group1 = core.addProductGroup(cupboard, "Left Side", 5, Unit.count);
			ProductGroup group1a = core.addProductGroup(group1, "Cereal", 2, Unit.count);
			ProductGroup group1b = core.addProductGroup(group1, "Bread", 3, Unit.count);
			ProductGroup group2 = core.addProductGroup(pantry, "Canned Food", 10, Unit.count);
			ProductGroup group2a = core.addProductGroup(group2, "Vegetables", (float)3.4, Unit.ounces);
			ProductGroup group2b = core.addProductGroup(group2, "Fruits",(float)6.2, Unit.ounces);
			/* should look list this
			 * root
			 * 	Cupboard
			 * 		Left Side
			 * 			Cereal
			 * 			Bread
			 * 	Pantry
			 * 		Canned Food
			 * 			Vegetables
			 * 			Fruits
			 */
			
		}
		catch (Exception e)
		{
			
		}
	}

}
